<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>权限管理系统</title>
    <!-- 引入Bootstrap样式（无需下载，在线引用） -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .container { margin-top: 50px; }
        .card { margin-bottom: 20px; transition: transform 0.3s; }
        .card:hover { transform: translateY(-5px); } /* hover效果 */
        .card-body { text-align: center; }
    </style>
</head>
<body>
<div class="container">
    <h1 class="text-center mb-5">MyBatis多表查询实践</h1>

    <!-- 任务卡片布局 -->
    <div class="row">
        <!-- 任务一卡片 -->
        <div class="col-md-4">
            <div class="card">
                <div class="card-header bg-primary text-white">
                    <h5 class="card-title">任务一</h5>
                </div>
                <div class="card-body">
                    <h6 class="card-subtitle mb-2 text-muted">用户角色查询</h6>
                    <p class="card-text">查询特定用户及其拥有的所有角色</p>
                    <a href="/user/role" class="btn btn-primary">进入查询</a>
                </div>
            </div>
        </div>

        <!-- 任务二卡片 -->
        <div class="col-md-4">
            <div class="card">
                <div class="card-header bg-success text-white">
                    <h5 class="card-title">任务二</h5>
                </div>
                <div class="card-body">
                    <h6 class="card-subtitle mb-2 text-muted">角色权限查询</h6>
                    <p class="card-text">查询特定角色及其所拥有的所有菜单权限</p>
                    <a href="/role/menu" class="btn btn-success">进入查询</a>
                </div>
            </div>
        </div>

        <!-- 任务三卡片 -->
        <div class="col-md-4">
            <div class="card">
                <div class="card-header bg-info text-white">
                    <h5 class="card-title">任务三</h5>
                </div>
                <div class="card-body">
                    <h6 class="card-subtitle mb-2 text-muted">综合查询</h6>
                    <p class="card-text">根据条件搜索用户及其角色权限信息</p>
                    <a href="/user/comprehensive" class="btn btn-info">进入查询</a>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 引入Bootstrap脚本 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>